//
//  CBridging.h
//  test_cpp_lib
//
//  Created by CallMeDoby on 2021/1/3.
//

#ifndef CBridging_h
#define CBridging_h

#include <stdio.h>


#ifdef __cplusplus
extern "C" {
#endif

//c调用相关
void c_printHello(void);
void c_callSwiftFunc(int value);

//cpp调用相关
typedef void* CPPPersonModel;//定义C++的对象指针

CPPPersonModel PMCreate();
CPPPersonModel PMCreateBy(const char *name, int age, int isMale);
void PMPrintInfo(CPPPersonModel model);
const char *PMGetName(CPPPersonModel model);
void PMDestoryModel(CPPPersonModel model);
void PMCallSwift(CPPPersonModel model, int value);
#ifdef __cplusplus
}
#endif


#endif /* CBridging_h */
